package com.example.demo.mapper;

import com.example.demo.Entity.ArticleVo;

import com.example.demo.Entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int add(Article article);
    Article getDetailById(@Param("id") Integer id,@Param("uid") Integer uid);
    int update(Article article);
    ArticleVo getDetail(@Param("id") Integer id);
    int addRcount(@Param("id") Integer id);
    List<Article>getMyArtList(@Param("id") Integer id);
     Integer countArt(@Param("uid") Integer uid);
     int delById(@Param("id") Integer id,@Param("uid") Integer uid);
     List<Article> pageLimt(@Param("pageSize") Integer pageSize,@Param("offset") Integer offset);
     Integer sumArt();
}
